package net.prasenjit.test.webmvc.model;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

public class Person implements Serializable {
    private static final long serialVersionUID = 6379452172305012734L;

    @NotEmpty(message = "bvl1")
    @Size(min = 10, max = 50, message = "bvl2")
    @Pattern(regexp = "[a-zA-Z]+", message = "bvl3")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
